<!-- Botões -->
<div class="row-fluid">
    <div class="span2 action-btn round-all">
        <a href="<?php echo $this->url('sisesporte-admin', array('controller' => 'turma')) ?>" title="Consultar">
            <div><i class="icon-th-list"></i></div>
            <div><strong>Consultar</strong></div>
        </a>
    </div>
</div>
<!-- Fim Botões -->
<?php
if ($this->msg == TRUE) {
    echo '<script src="/js/sisesporte-admin/turma/mensagem.js"></script>';
}
?>
<?php
$form = $this->form;
$form->setAttribute('action', $this->url('sisesporte-admin-interna', array('controller' => 'turma', 'action' => 'edit', 'id' => $this->entity['sqTurma'])));
$form->prepare();
echo $this->form()->openTag($form);
?>
<!-- Conteudo -->
<div class="row-fluid">
    <div class="span12 column" id="col0">
        <div class="box" id="box-0">
            <h4 class="box-header round-top">Editar Turma
                <a class="box-btn" title="close"><i class="icon-remove"></i></a>
                <a class="box-btn" title="toggle"><i class="icon-minus"></i></a>
                <a class="box-btn" title="config" data-toggle="modal" href="#box-config-modal"><i class="icon-cog"></i></a>
            </h4>
            <div class="box-container-toggle">
                <div class="box-content">
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span1">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqSituacaoTurma')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span1">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('nuAno')) ?>
                                </div>
                            </div>
                            <div class="span2">
                                <div class="controls controls-rows removeFieldSet">
                                    <?php echo $this->formRow($form->get('inSemestre')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span2">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('coTurma')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span4">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqModalidade')) ?>
                                </div>
                            </div>
                            <div class="span4">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqNivel')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span2">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('nuVaga')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span5">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqTurmaDia')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span4">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqHorarioInicio')) ?>
                                </div>
                            </div>
                            <div class="span4">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqHorarioTermino')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span4">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqTipoFaixaEtaria')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span3">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqProfessorApto')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span2">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('inPreTeste')) ?>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="input-append date" id="dpDtInicioTeste" data-date="<?php echo date('d/m/Y') ?>" data-date-format="dd/mm/yyyy">
                                    <?php echo $this->formRow($form->get('dtInicioTeste')) ?>
                                    <span class="add-on"><i class="icon-calendar"></i></span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="input-append date" id="dpDtFimTeste" data-date="<?php echo date('d/m/Y') ?>" data-date-format="dd/mm/yyyy">
                                    <?php echo $this->formRow($form->get('dtFimTeste')) ?>
                                    <span class="add-on"><i class="icon-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span2">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('inSorteio')) ?>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="input-append date" id="dpDtSorteio" data-date="<?php echo date('d/m/Y') ?>" data-date-format="dd/mm/yyyy">
                                    <?php echo $this->formRow($form->get('dtSorteio')) ?>
                                    <span class="add-on"><i class="icon-calendar"></i></span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="input-append date" id="dpDtDivulgacao" data-date="<?php echo date('d/m/Y') ?>" data-date-format="dd/mm/yyyy">
                                    <?php echo $this->formRow($form->get('dtDivulgacao')) ?>
                                    <span class="add-on"><i class="icon-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div><!--/span-->
    </div>
</div>
<!-- Botão -->
<div class="row-fluid">
    <div class="span12 form-actions pull-right btn-toolbar">
        <a class="btn btn-danger" href="<?php echo $this->url('sisesporte-admin-interna', array('controller' => 'turma')); ?>">
            Cancelar
        </a>
        <?php echo $this->formRow($form->get('submit')) ?>
    </div>
</div>
<!-- Fim Botão -->
<?php
echo $this->form()->closeTag();
?>
<script src="/js/sisesporte-admin/turma/edit.js"></script>
<script src="/js/sisesporte-admin/turma/validate.js"></script>